package cn.wolfcode.shop.domain;

import java.util.HashMap;
import java.util.List;

import com.alibaba.fastjson.JSON;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class SkuProperty extends BaseDomain{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Long catalogId;

    private String name;

    private Byte type;

    private Integer sort;
    
    private List<SkuPropertyValue> propertyValueList;

	public String getJsonData() {

		HashMap<String, Object> map = new HashMap<>();
		map.put("id", this.getId());
		map.put("catalogId", this.catalogId);
		map.put("name", this.name);
		map.put("sort", this.sort);
		map.put("type", this.type);

		return JSON.toJSONString(map);
	}

}